package com.ewanghuiju.app.app;

import android.os.Environment;

import java.io.File;

/**
 * @author sj  qq:751943509
 * @class describe  变量
 * @time 2020/2/6
 */
public class Constants {
    public static final boolean IS_DEBUG = true;
    public static final int ALERT_BASE_WIDTH = 375;
    //================= KEY ====================
    public static final String BUGLY_ID = "257700f3f8";
    public static final String WX_APPID = "wxfa05c254f5a87d64";
    public static final String WX_SECRET = "76203fee188ea5b507bcfc847c9a77b3";
    public static final String QQ_APPID = "100424468";
    public static final String QQ_SECRET = "c7394704798a158208a74ab60104f0ba";
    public static final String UMENT_APPKEY = "5e23d1ca0cafb2d52700011f";

    //获取osstoken是传递的类型
    public static final String PHONE_TYPE = "Android";
    //关于我们
    public static final String WEBURL_ABOUTUS = "http://wangxiaoma.com/about_us/about_us.html";
    //常见问题
    public static final String COMMON_PROBLEM = "http://wangxiaoma.com/common_problem/common_problem.html";
    //这是用户协议
    public static final String WEBURL_USERXY = "http://wangxiaoma.com/protocol/User_Agreement.html";
    //充值协议
    public static final String WEBURL_DEPOSIT = "https://wangxiaoma.com/protocol/Recharge_agreement.html";
    //共享影视
    public static final String WEBURL_VIDEO = "http://dianying.itiqq.com/";
    //小说
    public static final String WEBURL_BOOKS = "http://d.itiqq.com/";
    //头条
    public static final String WEBURL_TOUTIAO = "http://wangxiaoma.com/Announcement_details/Announcement_details.html?id=";
    //客服
    public static final String WEBURL_KEFU = "http://wangxiaoma.com/baidushangqiao/index.html";
    //新手教程
    public static final String WEBURL_NEW = "https://wangxiaoma.com/Beginner_tutorial/Beginner_tutorial.html?id=";
    //网页title
    public static final String WEBURL_TITLE = "weburl_title";

    public static final String WEBURL_KEFU_TITLE = "客服";
    public static final String WEBURL_KUAIDI_TITLE = "快递信息";

    public static final String OSS_ENDPOINT = "oss-cn-beijing.aliyuncs.com";
    public static final String OSS_BASE_URL = "http://ewhjx.oss-cn-beijing.aliyuncs.com/";
    public static final String OSS_ACCESSKEYID = "LTAIYWHpKzX9Qkx8";
    public static final String OSS_ACCESSKEYSECRET = "cxxXqU2kfEWoLdY3hLJsuZ9cMIza6U";
    //支付方式
    public static final String PAY_TYPE_WXPAY = "wechat";
    public static final String PAY_TYPE_ALIPAY = "alipay";

    public static final String FILE_PROVIDER_AUTHORITY = "com.wxm.ewhj.fileprovider";
    //================= PATH ====================

    public static final String PATH_DATA = App.getInstance().getCacheDir().getAbsolutePath() + File.separator + "data";

    public static final String PATH_CACHE = PATH_DATA + "/NetCache";

    public static final String PATH_SDCARD = Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + "wxm" + File.separator + "Ewhj";

    //================= PREFERENCE ====================

    public static final String SP_NO_IMAGE = "no_image";
    public static final String SP_USER_INFO = "user_info";
    public static final String SP_TOKEN = "sp_token";
    //是否同意隐私政策
    public static final String ACCEP_AGREEMENT = "accep_agreement";
    //是否第一次进入
    public static final String IS_FALSE = "is_false";
    //是否设置极光Alias
    public static final String IS_ALIAS = "is_alias";
    public static final int NO_KNOW_EROO = 500;

    public static final int NUM_OF_PAGE = 10;//分页数量

    public static final int NUM_OF_PAGE_TWO = 20;//分页数量

    public static final String IT_HOME_TYPE = "home_type";
    //错误提示
    public static final String ERROR_MESSAGE = "出现错误";

    //消息
    public static final String MESSAGE_TYPE = "message_type"; //消息类型
    public static final int SETTING_MESSAGE = 1; //系统消息
    public static final int ACTIVITY_MESSAGE = 2; //活动消息
    public static final int GEREN_MESSAGE = 3; //个人消息
    public static final int NEWCOURSE_MESSAGE = 4; //新手教程

    //规则
    public static final String RULE_TITLE = "rule_title"; //规则标题
    public static final String RULE_CONTENT = "rule_content"; //规则内容

    //扫一扫
    public static final int SCAN_REQUEST_CODE = 101;//扫描识别Request Code
    public static final int SCAN_REQUEST_IMAGE = 112;//选择系统图片Request Code


    //限时抢购 页面传值
    public static final String LIMITEDSECKILL_TYPE = "limitedseckill_type";//类型  0  优惠券 1水滴
    public static final int LIMITEDSECKILL_TYPE_YHQ = 0;//优惠券
    public static final int LIMITEDSECKILL_TYPE_WATER = 1;//水滴

    //拼团订单列表 传值
    public static final String PINTUANORDER_TYPE = "pintuanorder_type";//拼团列表切换

    public static final String PINTUANORDER_FROM = "pintuanorder_from";//订单来源
    public static final int PINTUANORDER_FROM_CREATE_ORDER = 1;//订单来源 来自创建订单
    public static final int PINTUANORDER_FROM_ORDER_LIST = 2;//订单来源 来自订单列表
    public static final int PINTUANORDER_FROM_HEAD_LIST = 3;//订单来源 来自拼团头像列表
    public static final String PINTUANORDER_NO = "pintuanorder_no";//订单编号


    //登录注册页面传值
    public static final String LOGIN_TYPE = "login_type";//登录页面传值
    public static final String REGIST_PHONE = "regist_phone";//注册成功传递手机号
    public static final String BIND_USERINFO = "Bind_userinfo";//绑定用户信息

    public static final String BIND_UNIONID = "bind_unionid";//绑定用户信息unionid
    public static final String BIND_NICKNAME = "bind_nickname";//绑定用户信息Nickname
    public static final String BIND_HEADIMGURL = "bind_headimgurl";//绑定用户信息Headimgurl

    public static final String FANLIORDER_TYPE = "fanliorder_type";//返利列表切换
    //进入首页 传值
    public static final String TO_MAIN_TYPE = "TO_MAIN_TYPE";//进入首页
    public static final String TO_MAIN_VALUE = "TO_MAIN_VALUE";
    //钱包 收入支出
    public static final String WALLETCENTER_TYPE = "walletcenter_type";//钱包列表切换

    //设置页面 传值  绑定微信 1
    public static final String SETTING_TYPE = "setting_type";//设置类型

    //收益类型 传值
    public static final String SHOUYI_TYPE = "shouyi_type";//收益类型

    //粉丝类型 传值
    public static final String TEAM_FANS_TYPE = "team_fans_type";//粉丝类型
    public static final String TEAM_FANS_ID = "team_fans_id";//粉丝id

    //搜索页面传值
    public static final String SEARCH_BODY = "search_body";//搜索内容
    public static final String SEARCH_INPUT_BODY = "search_input_body";//传递内容

    //拼团商品传值
    public static final String PINTUAN_SHOP = "pintuan_shop";
    public static final String PINTUAN_SHOP_TYPE = "pintuan_shop_type";
    public static final String PINTUAN_SHOP_TITLE = "pintuan_shop_title";
    public static final String PINTUAN_SHOP_DETAILS = "pintuan_shop_details"; //拼团商品详情  已弃用

    public static final String PINTUAN_SURE_ORDER_INFO = "pintuan_sure_order_info";//确认订单
    public static final String PINTUAN_TITLE = "pintuan_title";//评价标题
    public static final String PINTUAN_IMAGE = "pintuan_image";//评价商品图片
    public static final String PINTUAN_ID = "pintuan_id";//评价商品id
    public static final String PINTUAN_SEARCH_TYPE = "pintuan_search_type";//拼团搜索类型
    public static final String PINTUAN_USER_YES = "pintuan_user_yes";//是否加入参团
    public static final String PINTUAN_SEARCH_MOUDE = "pintuan_search_moude";//拼团moudle
    public static final String PINTUAN_SHOP_ID = "pintuan_shop_id";//商品id
    public static final String PINTUAN_ADDRESS_INFO = "pintuan_address_info";//地址信息
    public static final String PINTUAN_SPECSID = "pintuan_specsid";//规格id
    public static final String PINTUAN_SPECS_TEXT = "pintuan_specs_text";//规格内容

    public static final String PINTUAN_GROUP_ID = "pintuan_group_id";//团号

    //水滴/积分商城
    public static final String WATER_SHOP_ID = "water_shop_id";//商品id
    public static final String WATER_SURE_ORDER_INFO = "water_sure_order_info";//确认订单
    public static final String WATER_TYPE = "water_type";//水滴商品分类

    //水滴 分红豆转增传值
    public static final String WATER_INCREASE_NUMBER = "water_increase_number";//数量
    public static final String WATER_REDBEAN_TYPE = "water_redbean_type";//类型
    public static final String WATER_INCREASE_POUNDAGE = "water_increase_poundage";//水滴转赠手续费
    //    public static final String PINTUAN_ORDER_ID = "pintuan_order_id";//拼团订单id
    //去往首页
    public static final String TO_MAIN = "TO_MAIN";
    public static final int MAIN_TYPE_THREE = 3;
    //地址信息传值
    public static final String ADDRESS_INFO = "address_info";

    public static final String TO_ADDRESS_LIST_TYPE = "to_address_list_type_";//去地址列表的type

    //今日爆款   高佣专区  大额神券 传值
    public static final String MAIL_TYPE = "mail_type";
    public static final int MAIL_TYPE_TODAY_HOT = 1;
    public static final int MAIL_TYPE_GYZQ = 2;
    public static final int MAIL_TYPE_DESQ = 3;

    //保存图片
    public static final int SAVE_IMAGE_ERROR = -1;
    public static final int SAVE_IMAGE_SUCCESSFUL = 0;

    /**
     * 观察者监听
     */
    public static final int TYPE_ADDRESS = 1000; //地址更新
    public static final int TYPE_CHANGE_PAYPWD = 1001;
    public static final int TYPE_ADDRESS_SELECTED = 1002; //地址选择
    public static final int TYPE_PAY_STATUS_RETURN = 1003; //支付状态返回
    public static final int TYPE_GET_USERINFO = 1004; //刷新用户信息
    public static final int TYPE_GET_SHOP_INFO = 1005; //刷新商品信息
    public static final int TYPE_GET_WALLET = 1006; //刷新钱包
    public static final int TYPE_GET_WATER_REDBEAN = 1007; //刷新水滴 红豆

    public static final int TYPE_TO_REFRESH_DATA = 1008; //更新用户信息后消息分发更新

    public static final int TYPE_GET_GROUP_INFO = 1009; //刷新团信息

    //水滴/积分商城
    public static final int TYPE_GET_WATER_SHOP_INFO = 2000; //刷新积分商品信息

    public static final int TYPE_ALIPAY_INFO = 1006; //刷新支付宝信息

}
